export const loadesFiles = (routes: Record<string, any>) => {
  let routerArray: any = []
  for (const key in routes) {
    const mod = routes[key]
    routerArray = routerArray.concat(mod.default || [])
  }

  return routerArray
}
